/**
 * 
 */
package com.dovgopoly.carlogbook.web.login.client.view;

import com.dovgopoly.carlogbook.common.mvp.AbstractView;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Widget;

/**
 * @author e.dovgopoliy
 * 
 */
public class RegistrationViewImpl extends AbstractView<RegistrationView.Presenter> implements RegistrationView {

	private static RegistrationViewImplUiBinder uiBinder = GWT.create(RegistrationViewImplUiBinder.class);
	@UiField
	Button btnRegsiter;
	@UiField
	Button btnCancel;

	interface RegistrationViewImplUiBinder extends UiBinder<Widget, RegistrationViewImpl> {
	}

	public RegistrationViewImpl() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiHandler("btnCancel")
	void onBtnCancelClick(ClickEvent event) {
		presenter.showLogin();
	}

	public void show() {

	}
}
